﻿namespace Sustainalytics.ESGRatings.Service.Models.DTOs.RpIndicators
{
    public class EsgRpIndicatorScoreDto
    {        
        public decimal RawScore { get; set; }
        public decimal Weight { get; set; }
        public decimal WeightedScore { get; set; }
        public EsgRpIndicatorTrendTypeEnum? TrendType { get; set; }

        public string TrendTypeName
        {
            get
            {
                switch (TrendType)
                {
                    case EsgRpIndicatorTrendTypeEnum.Negative:
                        return "Negative";
                    case EsgRpIndicatorTrendTypeEnum.Neutral:
                        return "Neutral";
                    case EsgRpIndicatorTrendTypeEnum.Positive:
                        return "Positive";
                }

                return null;
            }
        }
    }
}
